import mail from  './mail.js'
async function timers(email) {
	console.log(email)
	let res = await mail({mail:email})
	console.log(res)
		return new Promise((resolve,reject)=>{
			if(res.data.err==-1){
				uni.showToast({
					title:res.data.msg,
					icon:"none"
				})
			}else if(res.data.err==0){
				uni.showToast({
					title:res.data.msg
				})
			
			}
		})
}

export default timers